package cn.getech.data.metadata.service;

import cn.getech.data.metadata.controller.blood.BloodNode;
import cn.getech.data.metadata.controller.blood.BloodUnion;
import cn.getech.data.metadata.entity.meta.CollectionTableInfo;
import cn.getech.data.metadata.model.excel.CollectionBloodExcel;
import cn.getech.data.metadata.model.excel.CollectionBloodExcelError;
import com.alibaba.fastjson.JSONObject;

import java.util.List;

public interface CollectionBloodService {
    int  saveBatch(List<CollectionBloodExcel> list, List<CollectionBloodExcelError> failList, Integer tenantId);

    JSONObject tableRelation(BloodNode bloodNode);

    JSONObject tableFieldRelation(BloodNode bloodNode);

    void relationDelete(BloodUnion current);

    void relationSave(BloodUnion current);

    void synBloodData(Integer tableId);

    CollectionTableInfo getNodeInfo(Integer id);
}
